/*
 * SyncronizerAsteroides.h
 *
 *  Created on: Jul 3, 2012
 *      Author: gonzalo
 */

#ifndef SYNCRONIZERASTEROIDES_H_
#define SYNCRONIZERASTEROIDES_H_

#include "../common/Threads/Thread.h"
#include "../SDLtoolkit/widgets/PlayScenarioPanel.h"
#include "../common/Cliente/Client.h"

class SyncronizerAsteroides {
private:
	PlayScenarioPanel* container;
	Client* client;

	bool quering;

	void query();
	void syncro();

	int random;
public:
	SyncronizerAsteroides(PlayScenarioPanel* container,Client* client);

	void operate();

	void terminar();

	bool conectado() const;
    bool isQuering() const;
};

#endif /* SYNCRONIZERASTEROIDES_H_ */
